package com.hotel.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hotel.mapper.CustomerMapper;
import com.hotel.mapper.UserMapper;
import com.hotel.pojo.Customer;
import com.hotel.pojo.User;
import com.hotel.service.CustomerService;
import com.hotel.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author shkstart
 * @create 2021-06-26 19:06
 */
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public List<Customer> findList(Map<String, Object> queryMap) {
        // TODO Auto-generated method stub
        return customerMapper.findList(queryMap);
    }

    //模糊搜索总条数
    @Override
    public Integer getTotal(Map<String, Object> queryMap) {
        // TODO Auto-generated method stub
        return customerMapper.getTotal(queryMap);
    }

    @Override
    public Customer findByName(String name) {
        // TODO Auto-generated method stub
        return customerMapper.findByName(name);
    }


}
